package com.minelx.sqlstructures.common;

import com.minelx.sequence.core.ReturnMatcher;
import com.minelx.sequence.core.StringScanner;

public class VariableNameMatcher implements ReturnMatcher<String, StringScanner> {
	@Override
	public String onMatched(StringScanner scanner) {
		return scanner.til('$');
	}

	@Override
	public boolean isMatch(StringScanner scanner) {
		scanner.til('$'); //
		return scanner.hasNext();
	}
}
